#!/usr/bin/env python
#-*-encoding:utf-8-*-
'''
Created on 2015年1月20日

@author: chenyongbing
'''
import sys,os
current_dir = os.path.dirname(__file__)
import base64

def ap_encode(ap=''):
    return base64.b64encode(ap)
def ap_decode(ap=''):
    return base64.b64decode(ap)

if __name__ == '__main__':
    ap = '048d385858e0'
    print "http://open.zhimatech.com/msg/?ap="+ap_encode(ap)
    print ap_decode('MDQ4ZDM4NTY1MDgw')
    print ap_decode('MDQ4ZDM4NTY1MDgw')